package com.oa.srms.apps.actions;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;

import com.oa.srms.apps.entity.staff.StaffInfoValue;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class BasicAction extends ActionSupport implements SessionAware,
		ServletRequestAware, ServletResponseAware {
	protected Map<String, Object> session;
	protected HttpSession httpSession;
	protected HttpServletRequest request;
	protected HttpServletResponse response;
	
	protected StaffInfoValue staffInfo;
	
	protected Integer rows = 10;
	protected Integer pageNo;
	protected Integer currpage = 1;
	protected Integer totalpage;
	protected Integer count;

	public void setSession(Map<String, Object> session) {
		this.session = session;
	}

	public void setServletRequest(HttpServletRequest request) {
		this.request = request;
	}

	public void setRequestMessage(String key, Object value) {
		request.setAttribute(key, value);
	}

	public void setServletResponse(HttpServletResponse response) {
		this.response = response;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public StaffInfoValue getStaffInfo() {
		return staffInfo;
	}

	public void setStaffInfo(StaffInfoValue staffInfo) {
		this.staffInfo = staffInfo;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getCurrpage() {
		return currpage;
	}

	public void setCurrpage(Integer currpage) {
		this.currpage = currpage;
	}

	public Integer getTotalpage() {
		return totalpage;
	}

	public void setTotalpage(Integer totalpage) {
		this.totalpage = totalpage;
	}

}
